home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
UTILITIE
/
CONVERSI
/
1396.ZIP
/
STRIP.ARC
/
STRIP.DOC
< prev
next >
Wrap
Text File
|
1988-06-04
|
4KB
|
108 lines
DOCUMENTATION FOR STRIP.COM Version 3.01
June 4, 1988
------------
STRIP deletes leading characters from lines within text files.
default = blanks. Which leading characters to delete are defined
by the user in the file STRIP.CNF.
You are prompted for the SOURCE file name, which is file to strip, and
for the filename to save it's changes to (defaults to input filename
with the extension '.FIX').
STRIP supports the command line. First item on command line is the
file to convert, and second item is the name of the file to save changes
to. Again this will default to the source file name with the extension
.FIX.
STRIP will NOT overwrite the source file.
Command line exceptions are as follows:
STRIP ? displays brief help screen
STRIP * Creates new configuration file
Version 3.0 was changed to be more configurable to your needs. You can
now supply up to three characters to search for during the "strip"
operation. These options are set in the file "STRIP.CNF".
Setup for the file STRIP.CNF (and it's picky!):
line 1 - number of different characters to strip. (1-3)
line 2 - Fist character to look for. (Enclose in quotes)
line 3 - Second character to look for. (Enclose in quotes)
line 4 - Third character to look for. (Enclose in quotes)
The default setup is to ONLY strip leading blanks from text files. The
supplied STRIP.CNF should look like this:
1
" "
You can use any pure ASCII text editor to change the .CNF file, or create
a new one at any time by entering an * on the command line. If you wanted
to strip all leading blanks and line feeds from your text files, your
STRIP.CNF file would look like this: (substitute the ASCII character
12 for <Ctrl/L>):
2
" "
"<Ctrl/L>"
Using these brief instructions, you can start by running STRIP on this
very .DOC file. (You knew there had to be a reason for all this unformatted
documentation).
Have STRIP.DOC, STRIP.CNF, and STRIP.COM in the same directory and issue
the command:
STRIP STRIP.DOC
and you will have yourself a better looking .DOC file with all leading
blanks removed, and all text flush left. Your "fixed" file name will be
STRIP.FIX.
-------------------------------------------------------------------------------
STRIP is written is QuickBASIC version 2.01. Compiled and linked to stand-
alone .EXE, then crunched to STRIP.COM using the public domain utility EXE2COM.
If you like this program, I would be more than happy to receive up to $5.00
from you. $5.00 will get you a copy of the latest version on disk. I'd also
like to hear about any major bugs you might have encountered while using it
whether you decide to contribute or not.
Chip Morrow
40 Valley View Dr.
Newark, OH 43055
(614) 366-4392 RBBS 300-2400 baud.
STRIP is distributed as "Shareware", along with it's QB source code.
You can modify, compile, copy, distribute, and use it however you wish.
If you use part or all of the code in your own programs you'd be giving
me an ego boost by acknowledging it.
I cannot be responsible for any damages resulting from the use of
(or inability to use) this program.
VERSION UPDATES:
===============
- Versions below 2.0 were never sent out into the public domain
(BUGS!).
- Version 2.0 had a line of code in it that would strip entire lines of
the "-" character (CHR$45) if they existed. This has been fixed in
ver. 2.10.
- Version 3.0 re-written 6-4-88 to support stripping of different
characters. Code cleaned up a bit and documented.
- Version 3.01 cleaned up furthur, and added ability to create .CNF file
from the program.